<?python
  
    from whatwhat.utils import textilize, getGroups
    from turbogears.i18n.format import format_date
    from turbogears import identity
    
    groupids = getGroups()
?>

<li xmlns:py="http://purl.org/kid/ns#" class="answer" id="answer_$answer.id">
	<div class="answer_content" onmouseover="show_inline('remove_answer_link_$answer.id');" onmouseout="hide('remove_answer_link_$answer.id');">
		${XML(textilize(answer.answer))}
		<div class="answer_info">
			<span>Answered by <a href="mailto:$answer.creator.emailAddress">${answer.creator.displayName}</a>
			on ${format_date(answer.creation_date, time_format=' %I:%M %p')}</span>
			<a py:if="not read_only and (identity.current.user == answer.creator or 'admin' in groupids)" class="remove_answer_link" id="remove_answer_link_$answer.id" style="display: none;" href="#" onclick="remove_answer($answer.id); return false;">remove</a>
		</div>
	</div>
</li>
